package com.cjkj.purchase.mapper;

import java.util.List;
import com.cjkj.purchase.domain.PurchaseStorageRecord;

/**
 * 采购材料入库记录Mapper接口
 * 
 * @author cjkj
 * @date 2025-02-20
 */
public interface PurchaseStorageRecordMapper 
{
    /**
     * 查询采购材料入库记录
     * 
     * @param recordId 采购材料入库记录主键
     * @return 采购材料入库记录
     */
    PurchaseStorageRecord selectPurchaseStorageRecordByRecordId(Long recordId);

    /**
     * 查询采购材料入库记录列表
     * 
     * @param purchaseStorageRecord 采购材料入库记录
     * @return 采购材料入库记录集合
     */
    List<PurchaseStorageRecord> selectPurchaseStorageRecordList(PurchaseStorageRecord purchaseStorageRecord);

    /**
     * 新增采购材料入库记录
     * 
     * @param purchaseStorageRecord 采购材料入库记录
     * @return 结果
     */
    int insertPurchaseStorageRecord(PurchaseStorageRecord purchaseStorageRecord);

    /**
     * 修改采购材料入库记录
     * 
     * @param purchaseStorageRecord 采购材料入库记录
     * @return 结果
     */
    int updatePurchaseStorageRecord(PurchaseStorageRecord purchaseStorageRecord);

    /**
     * 删除采购材料入库记录
     * 
     * @param recordId 采购材料入库记录主键
     * @return 结果
     */
    int deletePurchaseStorageRecordByRecordId(Long recordId);

    /**
     * 批量删除采购材料入库记录
     * 
     * @param recordIds 需要删除的数据主键集合
     * @return 结果
     */
    int deletePurchaseStorageRecordByRecordIds(Long[] recordIds);
}
